﻿<!--边栏开始-->
<div id="sidebar">
    <div class="widget">
        <h3>博客统计</h3>
        <ul>
            <li>日志总数：@Setting.SitePostCount 篇</li>
            <li>评论总数：@Setting.SiteCommentCount 篇</li>
            <li>标签数量：@Setting.SiteTagCount 个</li>
            <li>分类数量：@Setting.SiteCategoryCount 个</li>
            <li>总访问量：@Setting.SiteViewCount</li>
            <li>运行天数：2274 天</li>
            <li>最后更新：2013-7-6</li>
        </ul>
    </div>
    <div class="widget">
        <h3>快捷登陆</h3>
        @if (false)
        {
            var currentUser = SessionHelper.GetSession<User>("CurrentUser");
            <ul>
                <li>
                    @currentUser.NickName
                </li>
            </ul>
        }
        else
        {
            <form action="/Handlers/LoginAjax.ashx" method="post">
                <ul>
                    <li>
                        <input type="text" name="user_login" />
                    </li>
                    <li>
                        <input type="password" name="user_password" />
                    </li>
                    <li>
                        <input type="submit" value="登陆" />@Html.ActionLink("QQ登录", "OAuth", "Login")
                    </li>
                </ul>
            </form>
        }
    </div>
</div>
<!--边栏结束-->
